<div class="main">
<form id="groupListForm" method="post" action="javascript:;">
  <table id="groupList" class="table table-condensed table-hover table-striped tablesorter table-fixed">
    <thead>
    <tr class="colhead">
        <th class="w-id">
            <div class="headerSortUp"><a href="#">ID</a></div>
        </th>
        <th>
            <div class="header"><a href="#">用户组名</a></div>
        </th>
        <th>
            <div class="header"><a href="#">备注</a></div>
        </th>
        <th>
            <div class="header"><a href="#">状态</a></div>
        </th>
        <th class="w-120px">操作</th>
    </tr>
    </thead>
    <tbody>
        <?php foreach($list as $key => $value): ?>
        <tr class="text-center">
            <td>
                <input type="checkbox" name="ids[]" class="ids" value="<?php echo $value['id']; ?>"> <?php echo $value['id']; ?>
            </td>
            <td><?php echo $value['group_name']; ?></td>
            <td><?php echo $value['mark']; ?></td>
            <td><?php echo $value['status'] == 1 ? '正常' : '禁用'; ?></td>
            <td class="a-left w-120px">
                <?php echo HTML::groupAcl('acl', 'group', $value); ?>
                <?php echo HTML::groupEdit('group', 'edit', $value); ?>
                <?php echo HTML::groupDelete('group', 'delete', $value); ?>
                <!--
                <a title="权限维护" class="btn-icon " target="" href="<?php echo U('admin/acl/group', array('id' => $value['id']));?>"><i class="icon-group-managepriv icon-lock"></i></a>
                <a title="编辑用户组" class="btn-icon " target="" href="<?php echo U('admin/group/edit', array('id' => $value['id']));?>"><i class="icon-common-edit icon-pencil"></i></a>
                <a class="btn-icon" title="删除用户组" target="" href="javascript:ajaxDelete('<?php echo U('admin/group/delete', array('id' => $value['id']));?>','groupList',confirmDelete)"><i class="icon-remove"></i></a>
                -->
            </td>
        </tr>
        <?php endforeach; ?>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="5" style="padding-left:8px;">
            <div class="table-actions clearfix">
                <div class="input-group">
                    <a href="javascript:selectAll('')" class="btn btn-select-all" id="allchecker">全选</a>
                    <a href="javascript:selectReverse('')" class="btn btn-select-reverse" id="reversechecker">反选</a>
                </div>
                <?php echo HTML::groupDeleteAll('group', 'delete', array()); ?>
                <!--
                <button class="btn btn-submit btn-default btn-danger" onclick="ajaxDeleteSelect('<?php echo U('admin/group/delete');?>','groupList',confirmDelete, 'ids')" id="submit" type="submit">批量删除</button>
                -->
            </div>
            
            <div class="" style="float:right; clear:none;">
                <?php echo $page; ?>
            </div>
        </td>
    </tr>
    </tfoot>
  </table>
</form>
</div>